package test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanFactoryUtil {
	private static final String configLocation = "applicationContext.xml";

	public static Object getBean(String name){
		ApplicationContext ac=new ClassPathXmlApplicationContext(configLocation);
		return ac.getBean(name);
	}
}
